package cn.bsuc.crm.entity;

import cn.bsuc.crm.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 订单详情表
 */
@Data
@TableName("t_order_details")
public class OrderDetails extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer orderId; // 订单 id

    private String goodsName; // 商品名称

    private Integer goodsNum; // 商品数量

    private String unit; // 商品单位

    private Float price; // 单价

    private Float sum; // 总金额

    private Integer isValid;

}
